<!-- 关联交易 -->
<template>
  <div class="fund_relation">
    <div class="table w1021" v-for="(item,index) in data" :key="index">
      <div class="tableTh tableTr flex">
        <span class="tableTd w130">公告日期</span>
        <span class="tableTd flex1 orange">{{item.declareDate|filterVal}}</span>
      </div>
      <div class="tableTh tableTr flex top">
        <span class="tableTd w130">交易金额</span>
        <span class="tableTd flex1 orange">{{item.relMoney|filterVal("number")}}</span>
      </div>
      <div class="tableTh tableTr flex top">
        <span class="tableTd w130">交付方式</span>
        <span class="tableTd flex1 orange">{{item.relPayCls|filterVal}}</span>
      </div>
      <div class="tableTh tableTr flex top">
        <span class="tableTd w130">交易方式</span>
        <span class="tableTd flex1 orange">{{item.relTrdType|filterVal}}</span>
      </div>
      <div class="tableTh tableTr flex top">
        <span class="tableTd w130">交易对方</span>
        <span class="tableTd flex1 orange">{{item.relName|filterVal}}</span>
      </div>
      <div class="tableTh tableTr flex top">
        <span class="tableTd w130">关联关系</span>
        <span class="tableTd flex1 orange">{{item.relation|filterVal}}</span>
      </div>
      <div class="tableTh tableTr flex top">
        <span class="tableTd w130 table_hight_center">交易简述</span>
        <span class="tableTd flex1 orange">{{item.realkInfo|filterVal}}</span>
      </div>
    </div>
    <div class="tableNone orange w1021 top" v-if="data.length==0">暂无数据</div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: ["data"],
  filters: {
    filterVal(ops, num) {
      if (typeof ops == "number") {
        const res = num ? ops.toLocaleString() : ops;
        return res.indexOf(".") == -1 ? res + ".00" : res;
      }
      return ops ? ops : "--";
    }
  },
  components: {},
  computed: {},
  mounted() {},
  methods: {}
};
</script>
<style lang='scss' scoped>
</style>